+2008-11-07 Michael Natterer <mitch@imendio.com>
+
+ * gtk/gtkpaned.c: argh, actually call the newly added private
+ gtk_paned_calc_position() instead of the deprecated public
+ version.
+
2008-11-07 Michael Natterer <mitch@imendio.com>
Bug 553586 – Add orientation API to GtkPaned
if (paned->priv->orientation == GTK_ORIENTATION_HORIZONTAL)
{
- gtk_paned_compute_position (paned,
- MAX (1, widget->allocation.width
- - handle_size
- - 2 * border_width),
- child1_requisition.width,
- child2_requisition.width);
+ gtk_paned_calc_position (paned,
+ MAX (1, widget->allocation.width
+ - handle_size
+ - 2 * border_width),
+ child1_requisition.width,
+ child2_requisition.width);
paned->handle_pos.x = widget->allocation.x + paned->child1_size + border_width;
paned->handle_pos.y = widget->allocation.y + border_width;
}
else
{
- gtk_paned_compute_position (paned,
- MAX (1, widget->allocation.height
- - handle_size
- - 2 * border_width),
- child1_requisition.height,
- child2_requisition.height);
+ gtk_paned_calc_position (paned,
+ MAX (1, widget->allocation.height
+ - handle_size
+ - 2 * border_width),
+ child1_requisition.height,
+ child2_requisition.height);
paned->handle_pos.x = widget->allocation.x + border_width;
paned->handle_pos.y = widget->allocation.y + paned->child1_size + border_width;
* if the total allocation changes at the same time
* as the position, the position set is with reference
* to the new total size. If only the position changes,
- * then clamping will occur in gtk_paned_compute_position()
+ * then clamping will occur in gtk_paned_calc_position()
*/
paned->child1_size = position;